class Characters: #定义王者荣耀的英雄
    def __init__(self,name,career,position,advantage,method,strong_period):
        self.name=name  #名字
        self.career=career #职业
        self.position=position #位置
        self.advantage=advantage  #优势
        self.method=method  #玩法
        self.strong_period=strong_period  #强势期
    def introduction(self):  #英雄简介
        return(f"英雄名称:{self.name},职业:{self.career}")
    def playing_method(self):  #英雄玩法
        return (f"{self.name}是一名{self.career},建议前往{self.position}进行对局")
    def suggests(self):  #对局建议
        return(f"{self.name}拥有{self.advantage}的优势,建议利用此进行{self.method}。该英雄{self.strong_period}强势,利用此特点进行战斗")
# print(character1.suggests())


class Decoration:  #定义英雄的皮肤
    def __init__(self,name2,quality,price,special_effcts,__gain="攻击力+10"):  #皮肤自带增益加成，但为了"游戏的平衡"，会给你报"无增益加成"
        self.name2=name2  #皮肤名
        self.quality=quality  #皮肤品质
        self.price=price  #价格
        self.special_effcts=special_effcts  #特效
        self.__gain=__gain  #增益加成
    def introduction2(self):  #皮肤简介
        return(f"皮肤名称:{self.name2}。品质:{self.quality}。价格:{self.price}点券")
    def Special_effects(self):  #特效介绍
        return(f"皮肤特效:{self.special_effcts}")

    

class Mall(Characters,Decoration):  #定义一个商城
    def __init__(self, name, career, position, advantage, method, strong_period,name2,quality,price,special_effcts,__gain="攻击力+10"):
        super().__init__(name, career, position, advantage, method, strong_period)
        Decoration.__init__(self,name2,quality,price,special_effcts)
    def __str__(self):
        return(f"{self.introduction()}\n{self.playing_method()}\n{self.suggests()}\n{self.introduction2()}\n{self.Special_effects()}\n请支付点券以购买")
        
        
character1=Mall("公孙离","射手","发育路","灵巧","突进,收割","均衡","离恨烟","无双","4000","墨染江湖,外观,闪光海报,推进铭刻,推进破塔,出击表演,血条消散,常驻行走")

print(character1)
print(character1.__gain)
 



    
    
        


        



        